﻿<Window x:Class="AutoLoL.Dialogs.OverlayTimersDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="OverlayDialog" Height="200" Width="234"
        Topmost="True"
        WindowStyle="None"
        ResizeMode="NoResize"
        AllowsTransparency="True"
        Background="#44000000"
        WindowStartupLocation="CenterScreen"
        ShowInTaskbar="False">
    <Border BorderBrush="#44FFFFFF" BorderThickness="2">
        <DockPanel LastChildFill="True">
            <Grid DockPanel.Dock="Top" Margin="3">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                    <Button Name="ExpandButton" Width="22" Height="22" HorizontalContentAlignment="Left" Click="ExpandButton_Click">
                        <Button.Content>
                            <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/expand.png" />
                        </Button.Content>
                    </Button>
                    <Button Name="CollapseButton" Width="22" Height="22" HorizontalContentAlignment="Left" Click="CollapseButton_Click">
                        <Button.Content>
                            <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/collapse.png" />
                        </Button.Content>
                    </Button>
                    <Button Name="DragButton" Width="22" Height="22" HorizontalContentAlignment="Left" Margin="3 0 0 0" PreviewMouseDown="DragButton_PreviewMouseDown">
                        <Button.Content>
                            <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/drag.png" />
                        </Button.Content>
                    </Button>
                </StackPanel>
                <Button Name="CloseButton" Width="22" Height="22" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Click="CloseButton_Click">
                    <Button.Content>
                        <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/cross-button.png" />
                    </Button.Content>
                </Button>
            </Grid>
            <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="3 0 3 0">
                <Button Name="BaronButton" Tag="Baron" Width="38" Height="38" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Click="IconButton_Click">
                    <Button.Content>
                        <Image Height="32" Width="32" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/baron.png" />
                    </Button.Content>
                </Button>
                <Button Name="DragonButton" Tag="Dragon" Width="38" Height="38" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Margin="3 0 0 0" Click="IconButton_Click">
                    <Button.Content>
                        <Image Height="32" Width="32" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/dragon.png" />
                    </Button.Content>
                </Button>
                <Button Name="GolemButton" Tag="Golem" Width="38" Height="38" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Margin="3 0 0 0" Click="IconButton_Click">
                    <Button.Content>
                        <Image Height="32" Width="32" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/golem.png" />
                    </Button.Content>
                </Button>
                <Button Name="LizardButton" Tag="Lizard" Width="38" Height="38" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Margin="3 0 0 0" Click="IconButton_Click">
                    <Button.Content>
                        <Image Height="32" Width="32" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/lizard.png" />
                    </Button.Content>
                </Button>
                <Button Name="WardButton" Tag="Ward" Width="38" Height="38" HorizontalAlignment="Right" HorizontalContentAlignment="Left" Margin="3 0 0 0" Click="IconButton_Click">
                    <Button.Content>
                        <Image Height="32" Width="32" HorizontalAlignment="Center" VerticalAlignment="Center" Source="pack://siteoforigin:,,,/Data/Images/Icons/ward.gif" />
                    </Button.Content>
                </Button>
            </StackPanel>
            <ItemsControl Name="TimersItemsControl" Margin="3">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel IsItemsHost="True" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <DockPanel LastChildFill="True" Margin="0 0 0 3" >
                            <Image DockPanel.Dock="Left" Width="24" Height="24" Source="{Binding Icon}" Margin="0 0 3 0" />
                            <Image DockPanel.Dock="Right" Tag="{Binding}" Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/cross.png" Margin="3 0 0 0" VerticalAlignment="Center" MouseLeftButtonUp="Image_MouseLeftButtonUp" />
                            <ProgressBar Foreground="#33F0F8FF" Background="Transparent" Value="{Binding Progress, Mode=OneWay}" Height="20" VerticalAlignment="Center" />
                        </DockPanel>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </DockPanel>
    </Border>
</Window>
